# -*- coding: utf-8 -*-
"""
Created on Mon Sep 12 20:39:47 2016

@author: zhiqiang
"""

import math
ans = 0
n=7
for i in range(1,n+1):
    if i%2==0:
        max_i = 1
        j = 1
        while j<= math.sqrt(i)+1:
            print(j)
            if i%j==0 and j>max_i:
                max_i = j
            j += 2
        ans = ans + max_i
    else:
        ans += i
print(ans)